home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12866 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: erich.triumf.ca!bennett
  2. From: bennett@erich.triumf.ca (P.Bennett)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: This should really be a simple question for you C-freaks...
  5. Date: 2 Apr 1996 22:57 PST
  6. Organization: TRIUMF: Tri-University Meson Facility
  7. Distribution: world
  8. Message-ID: <2APR199622573397@erich.triumf.ca>
  9. References: <4jrue1$gsu@nyheter.chalmers.se>
  10. NNTP-Posting-Host: ftp.triumf.ca
  11. News-Software: VAX/VMS VNEWS 1.50    
  12.  
  13. In article <4jrue1$gsu@nyheter.chalmers.se>, Tobias Nilsson <tb9593@ios.chalmers.se> writes...
  14. >Well, even a damn good assembler-programmer runs into trouble, 
  15. >sometimes...  ;)
  16. >Anyway... I'm just trying to read the keyboard without having the 
  17. >characters displayed on the f-cking screen!  Just as that!  But I've
  18. >tried getchar, scanf, fun.01 int 21h... but they all display them...
  19. >I'm sure you had this question before... but I was playing with myself
  20. >that time, so I missed it... I want just pure ASCII, please help me!
  21. >(Ps... This is on the PC-platform... And I'm really fresh on C... and I 
  22. >hope there is a standard function for this...  ;) 
  23.  
  24. No - there is a non-standard function for this  :-)
  25.  
  26. Borland and Microsoft provide the functions getch() and getche() (in conio.h)
  27. to get a single char (without pressing "return") without, or with echo,
  28. respectively.  These are not ANSI standard, and won't be found on other
  29. systems.
  30.  
  31. Peter Bennett VE7CEI                | Vessels shall be deemed to be in sight
  32. Internet: bennett@triumf.ca         | of one another only when one can be
  33. Packet: ve7cei@ve7kit.#vanc.bc.ca   | observed visually from the other
  34. TRIUMF, Vancouver, B.C., Canada     |                          ColRegs 3(k)
  35. GPS and NMEA info and programs: ftp://sundae.triumf.ca/pub/peter/index.html
  36. or: ftp://ftp-i2.informatik.rwth-aachen.de/pub/arnd/GPS/peter/index.html
  37.  
  38.  
  39.  
  40.  
  41.  
  42.